package main

import (
	T "app/testapp"
	"fmt"
	"github.com/shopspring/decimal"
	"github.com/tidwall/gjson"
)

const json_str = `{"hello":"world", "age":18, "sex":"male"}`

func main() {

	T.SayHello()

	//T.Echo()

	// 精度
	price, err := decimal.NewFromString("13.099")
	if err != nil {
		panic(err)
	}
	fmt.Println(price)

	sumVal := decimal.Sum(T.Str2Decimal("12.00"), T.Str2Decimal("36.25"))
	fmt.Println(sumVal)

	wantValue := gjson.Get(json_str, "hello")
	fmt.Println(wantValue.String())
}
